home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / printing / pnmtoprt.0 / pnmtoprt / pnmtoprt-2.0 / EXAMPLE < prev    next >
Text File  |  1996-03-28  |  2KB  |  86 lines

  1. #!/bin/sh
  2.  
  3.  
  4.     # There are really no white stripes but it wastes color
  5. giftopnm girldemo.gif |\
  6.     pnmscale -xscale 4 -yscale 4 |\
  7.     pnmsmooth |\
  8.     pnmgamma 10 |\
  9.     ppmdither -dim 4 -red 2 -green 2 -blue 2 |\
  10.     pnmtoprt -d necp6_color -o 360x360dpi\
  11.         -o interlace_180 -o even=fff -o odd=fff >testcolor.360
  12.  
  13.     # A little bit less beautiful than the first example, but probably
  14.     # the better compromise
  15. giftopnm girldemo.gif |\
  16.     pnmscale -xscale 4 -yscale 4 |\
  17.     pnmsmooth |\
  18.     pnmgamma 10 |\
  19.     ppmdither -dim 4 -red 2 -green 2 -blue 2 |\
  20.     pnmtoprt -d necp6_color -o 360x360dpi\
  21.         -o interlace_180  >testcolor.360
  22.  
  23.     # Another compromise
  24. giftopnm girldemo.gif |\
  25.     pnmscale -xscale 4 -yscale 4 |\
  26.     pnmsmooth |\
  27.     pnmgamma 10 |\
  28.     ppmdither -dim 4 -red 2 -green 2 -blue 2 |\
  29.     pnmtoprt -d necp6_color -o 360x360dpi\
  30.         -o interlace_180 -o even=f0f -o odd=0f0 >testcolor.360
  31.  
  32.     # A nice greyscale of the picture
  33. giftopnm girldemo.gif |\
  34.     pnmscale -xscale 4 -yscale 4 |\
  35.     pnmsmooth |\
  36.     pnmgamma 10 |\
  37.     ppmtopgm |\
  38.     pgmtopbm |\
  39.     pnmtoprt -d necp6_mono -o 360x360dpi\
  40.         -o interlace_360 >testmono.360
  41.  
  42.     # quick and dirty
  43.     # probably there should be a lower gamma correction
  44. giftopnm girldemo.gif |\
  45.     pnmscale -xscale 4 -yscale 4 |\
  46.     pnmsmooth |\
  47.     pnmgamma 5 |\
  48.     ppmdither -dim 4 -red 2 -green 2 -blue 2 |\
  49.     pnmtoprt -d necp6_color -o 180x180dpi >testcolor.180
  50.  
  51.     # quick and dirty greyscale
  52.     # probably there should be a lower gamma correction
  53. giftopnm girldemo.gif |\
  54.     pnmscale -xscale 4 -yscale 4 |\
  55.     pnmsmooth |\
  56.     pnmgamma 5 |\
  57.     ppmtopgm |\
  58.     pgmtopbm |\
  59.     pnmtoprt -d necp6_mono -o 180x180dpi >testmono.180
  60.  
  61.  
  62.     # Try this pipe only when you have much much memory (and time)
  63.     # Otherwise step by step (data from one step: 12MB)
  64.     # But try it, the result will be nice
  65.     # Printing will need about 45 min
  66. giftopnm girldemo.gif |\
  67.     pnmscale -xscale 8 -yscale 8 |\
  68.     pnmsmooth |\
  69.     pnmgamma 10 |\
  70.     ppmdither -dim 4 -red 2 -green 2 -blue 2 |\
  71.     pnmtoprt -d necp6_color -o 360x360dpi\
  72.         -o interlace_180 -o even=fff -o odd=fff >testcolor2.360
  73.  
  74.     # Try this pipe only when you have much much memory
  75.     # Otherwise step by step
  76.     # An nice result too
  77. giftopnm girldemo.gif |\
  78.     pnmscale -xscale 8 -yscale 8 |\
  79.     pnmsmooth |\
  80.     pnmgamma 10 |\
  81.     ppmtopgm |\
  82.     pgmtopbm |\
  83.     pnmtoprt -d necp6_mono -o 360x360dpi\
  84.         -o interlace_360 >testmono2.360
  85.  
  86.